<div id="page-wrapper">
    <div class="row headline-check">
        <div class="col-md-4 headline-title" >
            <h3>学员招生 <img src="assets/img/angle-right.png" alt="" class="tubiao"></h3><h4>报课</h4>
        </div>
        <div class="col-md-4">
            <div style="background: #4da1ff;color: #fff;font-size: 22px;text-align: center;padding: 4px 10px;border-radius: 4px;">{{class_name}}</div>
        </div>
        <div class="col-md-2">
            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;"  onclick="javascript:history.back(-1);" >返回上一页</button>
        </div>
    </div>
    <div class="row createbutton" style="margin-right:0 " >
        <div class="col-md-1 change-title" >
            <span class="search-content" style="background: #f5e9e6;color:#f9b3a2">报课单号：</span>
        </div>
        <div class="col-md-1 change-title" >
            <input type="text" class="search-content" style="background: #f5e9e6;" id="orderno">
        </div>
        <div class="col-md-1 change-title" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">科目:</span>
        </div>
        <div class="col-md-1 change-title" >
            <subjectname></subjectname>
        </div>
        <div class="col-md-1" >
            <button type="button" class="btn btn-primary btnstyle" ng-click="computations()"  style="float:right">开始计算</button>
        </div>
        <div class="col-md-1" >
            <span class="search-content" style="background: #f5e9e6;">收据单号：</span>
        </div>
        <div class="col-md-1" >
            <input type="text" class="search-content" style="background: #f5e9e6;" id="record_sn">
        </div>
    </div>
    <div class="row createbutton" style="margin-right:0 " >
        <div class="col-md-2" >
            <saleclass></saleclass>
        </div>
        <div class="col-md-2" >
            <methostyle></methostyle>
        </div>
        <div class="col-md-2" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">校长:</span>
        </div>
        <div class="col-md-2" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="headmaster">
        </div>
        <div class="col-md-2" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">学生/家长:</span>
        </div>
        <div class="col-md-2" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="parents">
        </div>
    </div>
 <!--算法   -->
    <div class="row createbutton" style="margin-right:0 " >
        <div class="col-md-1" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">本次费用:</span>
        </div>
        <div class="col-md-1" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="now_tuition" value="">
        </div>
        <div class="col-md-1" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">优惠:</span>
        </div>
        <div class="col-md-1" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="treatment"  readonly>
        </div>
        <div class="col-md-1" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">减免:</span>
        </div>
        <div class="col-md-1" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="breaks" >
        </div>
        <div class="col-md-1" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">应缴费用:</span>
        </div>
        <div class="col-md-1" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="Should">
        </div>
        <div class="col-md-1" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">实际缴费:</span>
        </div>
        <div class="col-md-1" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="actual" value="0">
        </div>
        <div class="col-md-1" >
            <span class="search-content" style="background:#ebe0f9;color:#c87bfb ">欠费:</span>
        </div>
        <div class="col-md-1" >
            <input type="text" class="search-content" style="background:#ebe0f9;" id="owe">
        </div>
    </div>
<!--班课报课情况-->
    <div class="containerright">
        <table width="100%" align="center">
            <tbody class="revise-information">
            <tr  style="border-bottom: 1px solid #e2e2e3">
                <td  height="52"><span class="revise-list" >班课报课情况</span></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td height="52">班级</td>
                <td>科目</td>
                <td>已报节数</td>
                <td>消耗节数</td>
                <td>单价</td>
                <td>是否满科</td>
            </tr>
            <tr ng-repeat="data in subjectpactclazz">
                <td height="52"><span class="responsibility-class" style="width: 180px;background: #fef6f9;border: 1px solid #fce5ee">{{class_name}}</span></td>
                <td><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff">{{data.subject_name}}</span></td>
                <td><span class="responsibility-class" style="background: #eae7ff;border: 1px solid #e7e8ff">{{data.number}}</span></td>
                <td><span class="responsibility-class" style="background: #eae7ff;border: 1px solid #e7e8ff">{{data.number_use}}</span></td>
                <td><span class="responsibility-class"  style="background: #fef6f9;border: 1px solid #fce5ee">{{data.price}}</span></td>
                <td ng-if="data.is_total==0"><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff" >否</span></td>
                <td ng-if="data.is_total==1"><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff" >是</span></td>
            </tr>
            </tbody>
        </table>
    </div>
<!--学员学费信息-->
    <div class="containerright">
        <table width="100%" align="center">
            <tbody class="revise-information">
            <tr  style="border-bottom: 1px solid #e2e2e3">
                <td  height="52"><span class="revise-list" >学费信息</span></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td height="52" style="color: #8c8c8c">优惠档：</td>
                <td>{{findstudent.sale_name}}</td>
                <td style="color: #8c8c8c">减免：</td>
                <td>{{findstudent.sale_derate}}</td>
                <td style="color: #8c8c8c">优惠金额：</td>
                <td id="sale_tuition">{{findstudent.sale_tuition}}</td>
                <td style="color: #8c8c8c">总学费：</td>
                <td id="tuition_total">{{findstudent.tuition_total}}</td>
            </tr>
            <tr>
                <td height="52" style="color: #8c8c8c">应缴学费：</td>
                <td>{{findstudent.tuition_should}}</td>
                <td style="color: #8c8c8c" >已缴学费：</td>
                <td id="tuition_reality">{{findstudent.tuition_reality}}</td>
                <td style="color: #8c8c8c">所欠学费：</td>
                <td>{{findstudent.tuition_lack}}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="row">
        <div class="col-md-6 revise-left" >
            <div class="containerleft" style="background-color: #f9fffe;">
                <table width="100%">
                    <tbody class="class-daily">
                    <tr class="paikeconter">
                        <td  height="52" >科目</td>
                        <td>单价</td>
                        <td>节数</td>
                        <td>老师</td>
                        <td>时/次（每次小时数）</td>
                        <td>学费</td>
                        <td>操作</td>
                    </tr>
                    <tr class="paikeconter" ng-repeat="data in datas">
                        <td  height="52">
                            <div type="text" class="form-control"textval="{{data.subject_id}}" style="background: #fef6f9;border: 1px solid #fce5ee" id="addname_{{$index}}">{{data.subject_name}}</div>
                        </td>
                        <td>
                            <input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="price" id="addprice_{{$index}}">
                        </td>
                        <td>
                            <input type="number" class="form-control" style="background: #eae7ff;border: 1px solid #e7e8ff" ng-model="number"  min="1" max="{{data.number}}" id="number_{{$index}}">
                        </td>
                        <td>
                            <div type="text" class="form-control" textval="{{data.staff_id}}" style="background: #edf5ff;border: 1px solid #f2faff" id="name_{{$index}}">{{data.staff_name}}</div>
                        </td>
                        <td>
                            <input type="text" class="form-control"  style="background: #eae7ff;border: 1px solid #e7e8ff" ng-model="hour" id="hour_{{$index}}">
                        </td>
                        <td>
                            <input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee" value="{{number*price}}" id="zongprice_{{$index}}">
                        </td>
                        <td>
                            <button type="button" class="btn btn-primary btnstyle" ng-click="add($index)" id="btnstyle_{{$index}}">报课</button>
                            <button type="button" class="btn btn-primary" ng-click="resetting($index)" id="btnprystyle_{{$index}}">重置</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-md-6 revise-right" >
            <div class="containerright">
                <table width="100%">
                    <tbody class="class-daily">
                    <tr class="paikeconter">
                        <td  height="52" >科目</td>
                        <td>单价</td>
                        <td>节数</td>
                        <td>老师</td>
                        <td>时/次（每次小时数）</td>
                        <td>学费</td>
                        <td>操作</td>
                    </tr>
                    <tr class="paikeconter" ng-repeat="prod in prods">
                        <td  height="52" >{{prod.subject_name}}</td>
                        <td>{{prod.price}}</td>
                        <td>{{prod.number}}</td>
                        <td>{{prod.staff_name}}</td>
                        <td>{{prod.hour_secondary}}</td>
                        <td>{{prod.tuition}}</td>
                        <td><button type="button" class="btn btn-primary btnstyle" ng-click="delete($index)"  style="margin: 0 auto;">删除</button></td>
                    </tr>
                    </tbody>
                </table>
            </div>

        </div>
        <button type="button" class="btn btn-primary btnstyle" ng-click="save()"  style="float:right">保存</button>
    </div>



</div>
